package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import com.gljx.web.Entity.JournalEntry.CarExpenseDetailJournal;
import com.gljx.web.Entity.JournalEntry.lCarRefuelingJournal;
import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.CarRefuelEntry;
import org.springframework.stereotype.Component;

@Component
public interface CarRefuelEntryMapper {
    int deleteByPrimaryKey(String fid);

    int insert(CarRefuelEntry record);

    int insertSelective(CarRefuelEntry record);

    CarRefuelEntry selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(CarRefuelEntry record);

    int updateByPrimaryKey(CarRefuelEntry record);

    Double selCarRefuelBeginBalance(Map<String, Object> map);

    List<CarRefuelEntry> selCarRefuelEntry(Map<String, Object> map);

    Double selCarRefuelBeginBalances(Map<String, Object> map);

    List<CarRefuelEntry> selCarRefuelEntryByParentId(@Param("parentid")String parentid,@Param("carNumber")String carNumber);

    List<CarRefuelEntry> selCarRefuelEntryBycarName(@Param("carName")String carName);

    int deleteByParetnId(String parentId);

    List<lCarRefuelingJournal> selectofMonth(Map map);

    //查询总报表
    List<CarExpenseDetailJournal> selectCarExpenseDetail(Map map);

    //cc查询明细表
    List<CarExpenseDetailJournal> selectCarExpenseDetail2(Map map);

    List<CarRefuelEntry> selectCarRefuelEntryForJournal(Map<String, String> map3);
}